import { useGlobalIconFont } from './components/iconfont/helper';

export default {
  pages: [
    'pages/index/index',
    "pages/login/index",
    "pages/mine/index",
    "pages/vrShow/vrShow"
  ],
  subPackages: [
    {
      /**
       * 分包根路径
       * - 注意：不能放在主包pages目录下
       */
      root: "packages/package-system",
      /**
       * 分包路径下的所有页面配置
       */
      pages: ["index"],
      /**
       * 分包别名，分包预下载时可以使用
       */
      name: '各体系页面',
      /**
       * 分包是否是独立分包
       */
      independent: false
    },
    {
      root: "packages/package-lesson-divide",
      pages: ["index"],
      name: '课程分类',
      independent: false
    },
    {
      root: "packages/package-lesson-detail",
      pages: ["index"],
      name: '课程详情',
      independent: false
    },
    {
      root: "packages/package-config",
      pages: ["index", "my/index"],
      name: '我的',
      independent: false
    },
    {
      root: "packages/package-history",
      pages: ["index"],
      name: '我的足迹',
      independent: false
    },
    {
      root: "packages/package-collection",
      pages: ["index"],
      name: '我的收藏',
      independent: false
    },
    {
      root: "packages/package-login",
      pages: ["index"],
      name: '登录页面',
      independent: false
    },
    {
      root: 'packages/package-works',
      pages: ["index"],
      name: '学生作品',
      independent: false
    },
    {
      root: 'packages/package-works-detail',
      pages: ["index"],
      name: '学生作品详情',
      independent: false
    },
    {
      root: "packages/package-service",
      pages: ["index"],
      name: '用户服务协议',
      independent: false
    },
    {
      root: "packages/package-private",
      pages: ["index"],
      name: '隐私',
      independent: false
    },


  ],
  tabBar: {
    selectedColor: "#ff5722",
    // backgroundColor: "#fafafa",
    borderStyle: 'black',
    // custom: true,
    list: [
      {
        pagePath: "pages/index/index",
        iconPath: "./assets/tab-bar/home.png",
        selectedIconPath: "./assets/tab-bar/home_active.png",
        text: "首页"
      },
      // {
      //   pagePath: "pages/index/index",
      //   iconPath: "./assets/tab-bar/mall.png",
      //   selectedIconPath: "./assets/tab-bar/mall_active.png",
      //   text: "商城"
      // },
      // {
      //   pagePath: "pages/index/index",
      //   iconPath: "./assets/tab-bar/cart.png",
      //   selectedIconPath: "./assets/tab-bar/cart_active.png",
      //   text: "购物车"
      // },
      {
        pagePath: "pages/mine/index",
        iconPath: "./assets/tab-bar/mine.png",
        selectedIconPath: "./assets/tab-bar/mine_active.png",
        text: "我的"
      },
    ],
  },
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fefefe",
    navigationBarTextStyle: "black"
  },
  usingComponents: Object.assign(useGlobalIconFont()),
  permission: {
    "scope.userLocation": {
      desc: "你的位置信息将用于小程序位置接口的效果展示"
    }
  },
  preloadRule: {
  }
}

